<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.jxLC.Action.*"%>
<%@ page language="java" import="com.jxLC.Model.*" %>
<%@ page language="java" import="com.jxLC.Service.*" %>
<%@ page language="java" import="java.io.File" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>:::江西低碳合作交流网:::</title>
	<link href="/MyProject/mycss/my.css"  rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/MyProject/myjs/jquery.js"></script>
	<script type="text/javascript" src="/MyProject/myjs/link.js"></script>
    <script type="text/javascript" src="/MyProject/myjs/my.js"></script>
    <script type="text/javascript" src="/MyProject/myjs/lunbo.js"></script>
    <script type="text/javascript">
    

    
        var result ="<%=request.getAttribute("errorMessage")%>";
        var result2 ="<%=request.getAttribute("addsuccess")%>";                                     
     
     if(result2!='null'  &&  result2!=undefined)
     {
           alert(result2);
     }  
        
   		function checkForm(myform) {				
				if(myform.CNum.value == "") {
					alert('用户账号必须输入！');
					myform.CNum.focus();
					return false;
				}
				if(myform.CPassword.value == "") {
					alert('密码必须输入！');
					myform.CPassword.focus();
					return false;
				}
				return true;	
			}
	</script>	
  </head>
  
 <body style="background-color:#EBFCF3">

    <div id="head">
	    <div id="h1">
		    <div id="timestate"></div>
		</div>
		<div id="h2"></div>
		<div id="h3"></div>
		<div id="h4"></div>
		<div id="h5">
		                                         <a href="contentAction">首页</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/news.jsp ">新闻展会</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/technology.jsp">技术前沿</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/pinformation.jsp">项目信息</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/jxtc.jsp">江西低碳</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/science.jsp">百科专题</a> 
		                &nbsp;&nbsp;|&nbsp;&nbsp;<a href="Detail/policy.jsp">低碳政策</a>
		</div>
		<div id="h6"></div>
	</div>
	<div id="middle">
	    <div id="mL">
		    <div id="mL1">
			    <div id="mL1a">
			       <div class="scrollframe">
                   <div class="scrollcontent" id="content"> 
                     <!--显示上传的图片  -->
                    <%
                    String dir=pageContext.getServletContext().getRealPath("/my.photo/photo/imageUpload");
                    File imageUpload = new File(dir);
                    File [] images=imageUpload.listFiles(); 
                    String image=null;      
                    for(int i=0;i<images.length;i++){
                        for(int j=0;j<images.length;j++){
                           String imageName=images[j].getName();
                           int n=imageName.indexOf(".");
                           String index=imageName.substring(0,n);
                           if(Integer.valueOf(index)==i){
                             image=imageName;
                           } 
                        }
                        String imagePath="my.photo/photo/imageUpload"+"/"+image;
                    %>
                      <img style="width:264px ;height:315px " src="<%=imagePath%>"/> 
                  <%  }  %>
                   <!--显示上传的图片  --> 


			       </div>
                   <ul id="lunbo">
                        <Li >1</li>
                        <Li >2</li>
                        <Li >3</li>
                   </ul>
                   
                   </div>
 			    </div>
				<div id="mL1b">
				    <div id="mL1b1">&nbsp;<img src="my.photo/photo/logo/icons/arrow_branch.png" />  新 闻 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/news.jsp" target="_balnk">更多...</a></div>
					 <div id="mL1b2">
					 <ul id="u1">
					 <%
					 Map<Integer, List<Content>> contentmap=(Map<Integer, List<Content>>)request.getAttribute("contentmap");
					 List<Content> contents = contentmap.get(1);
		              for(Content content : contents){
			                %>
			                  <li>
			                  <img src="my.photo/photo/logo5.jpg">&nbsp;<a href="getContenttextAction.action?CContent_ID=<%=content.getCContent_ID() %>" target="_blank"><%=content.getCContent_topic()%></a>
			                  </li>
			                <%
		                  }
					  %>
					 </ul>
					</div>
				</div>
			</div>
			<div id="mL2">
			    <div id="mL2a">
				    <div id="mL2a1">&nbsp;<img src="my.photo/photo/logo/icons/world_go.png" />  展会动态&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/exhibition.jsp" target="_balnk">更多...</a></div>
					<div id="mL2a2">
					    <ul id="u1">
					    <%
					    	contents=contentmap.get(2);
					    	for(Content content:contents){
					    		%>
					     <li><img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getContenttextAction.action?CContent_ID=<%=content.getCContent_ID() %>" target="_blank"><%=content.getCContent_topic() %></a></li>
					    		<%
					    	}
					     %>
					    </ul>
					</div>
				</div>
				<div id="mL2b">
				    <div id="mL2b1">&nbsp;<img src="my.photo/photo/logo/icons/arrow_divide.png" />  前沿技术 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/technology.jsp" target="_balnk">更多...</a></div>
					<div id="mL2b2">
					    <ul id="u1">
					    <%
					    	contents=contentmap.get(3);
					    	for(Content content:contents){
					    		
					    		%>
					     <li><img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getContenttextAction.action?CContent_ID=<%=content.getCContent_ID() %>" target="_blank"><%=content.getCContent_topic() %></a></li>
					    		<%
					    	}
					     %>
					    </ul>
					</div>
				</div>
			</div>
            <div id="mL3">
			    <div id="mL3a">
				    <div id="mL3a1">&nbsp;<img src="my.photo/photo/logo/icons/brick_go.png" />  江西低碳 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/jxtc.jsp" target="_balnk">更多...</a></div>
					<div id="mL3a2">
					    <ul id="u1">
					    <%
					    	contents=contentmap.get(4);
					    	for(Content content:contents){
					    		
					    		%>
					     <li><img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getContenttextAction.action?CContent_ID=<%=content.getCContent_ID() %>" target="_blank"><%=content.getCContent_topic() %></a></li>
					    		<%
					    	}
					     %>
					     </ul>  
					</div>
				</div>
				<div id="mL3b">
				    <div id="mL3b1">&nbsp;<img src="my.photo/photo/logo/icons/arrow_inout.png" />  科普知识 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/science.jsp" target="_balnk">更多...</a></div>
					<div id="mL3b2">
					    <ul id="u1">
					    <%
					    	contents=contentmap.get(5);
					    	for(Content content:contents){
					    		
					    		%>
					     <li><img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getContenttextAction.action?CContent_ID=<%=content.getCContent_ID() %>" target="_blank"><%=content.getCContent_topic() %></a></li>
					    		<%
					    	}
					     %>
					    </ul>   
					</div>
				</div>
			</div>
			<div id="mL4">
			    <div id="mL4a">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="a1">战略合作伙伴</a> | <a href="#" class="a2">友情链接</a></div>
				<div id="mL4b">
				               <a href="http://www.in-en.com/" target="_blank">现代能源网</a>   <a href="http://www.tyn.cc/" target="_blank">太阳能</a>   <a href="http://www.1news1.cn/" target="_blank">焦点中国网</a>
				               <a href="http://www.sinoeser.com/403.html" target="_blank">中国节能减碳门户</a>   <a href="http://www.rail-transit.com/" target="_blank">中国轨道交通网</a>   <a href="http://www.dqwycz.com/" target="_blank">地球唯一村庄</a>
				               <a href="http://www.lowcep.com/" target="_blank">低碳环保网</a>   <a href="http://www.cmcpa.cc/" target="_blank">中国新闻文化促进会</a>
				               <a href="http://biz.cb.com.cn/" target="_blank">中国商业新闻网</a>   <a href="http://www.corp123.cn/" target="_blank">中国企业口碑网</a>   <a href="http://www.pway.cn/" target="_blank">经济和文化网</a>
				               <a href="http://www.cneechina.cn/" target="_blank">清洁能源展</a>     <a href="http://www.86jnjp.com/" target="_blank">国际节能减排网</a>   <a href="http://www.bidhome.com.cn/" target="_blank">中国项目招标网</a>
				               <a href="http://www.lowtan.cn/" target="_blank">中碳网</a>
				</div>
				<div id="mL4c" style="display: none">
				               <a href="http://www.jiangxi.gov.cn/" target="_blank">江西省政府网</a>   <a href="http://www.chinaenvironment.com/" target="_blank">中国环保网</a>   <a href="http://www.jxstc.gov.cn/" target="_blank">江西科技网</a>
				               <a href="http://mail.jxjst.gov.cn/" target="_blank">江西建设网</a>   <a href="http://www.mrl.org.cn/" target="_blank">江西山江湖可持续发展促进会</a>   
				</div>
			</div>
		</div>
		<div id="mM"></div>
		<div id="mR">
		    <div id="mR1">
			    <div id="mR1a">
			       <form action="Detail/searchresult.jsp"  >
			             <img  src="my.photo/photo/logo/icons/zoom_in.png" />  全站搜索:&nbsp;<input size="15" type="text" name="title" value="关键词" onmouseover="this.focus()" onfocus="this.select()" style="border: 1px solid green;height:24px;width:10px； padding-top:4px;"/> 
				         <input type="submit" style="height:28px;width:50px;" value="检索" /> 
				   </form>
				</div>
				<div id="mR1b">&nbsp;&nbsp;<img src="my.photo/photo/logo/icons/user_add.png" />  企业平台</div>
				<div id="mR1c">
				    <div id="mf">
				   <form action="Login!login" method="post" onsubmit="return checkForm(this);">
				       <br>
				                          用户名：<input type="text" name="CNum" style="border: 1px solid #00FF99 ;padding-top:3px; height:25px;width:140px; " /><br><br>
					     &nbsp;&nbsp;密&nbsp; 码：<input type="password" name="CPassword" style="border: 1px solid #00FF99;padding-top:3px;width:140px; height:25px;" /><br><br>
					     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					     <input type="submit" value="登 录" style="width:80px;height:30px;font-size:16px;font-family:'新宋体'; font-weight:bold;"  />
				   </form>
				    </div>
				</div>
			</div> 
			<div id="mR2">
			    <div id="mR2a">&nbsp;&nbsp;<img src="my.photo/photo/logo/icons/application_view_columns.png" />  国内项目 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/iinfo.jsp" target="_balnk">更多...</a></div>
				<div id="mR2b">
				     <ul id="u1">
				     <%
					 Map<Integer, List<Filecontent>> fcontentmap=(Map<Integer, List<Filecontent>>)request.getAttribute("fcontentmap");
					 List<Filecontent> fcontents = fcontentmap.get(1);
		              for(Filecontent fcontent : fcontents){
			                %>
			                  <li>
			                  <img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getFContenttextAction.action?CFC_id=<%=fcontent.getCFC_id() %>" target="_blank"><%=fcontent.getCFC_topic()%></a>
			                  </li>
			                <%
		                  }
					  %>
					     </ul>   
				</div>
			</div>
			<div id="mR3">
			    <div id="mR3a">&nbsp;&nbsp;<img src="my.photo/photo/logo/icons/world_edit.png" />  国外项目&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                    <a href="Detail/oinfo.jsp" target="_balnk">更多...</a></div>
				<div id="mR3b">
				    <ul id="u1">
				    <%
					  fcontents = fcontentmap.get(2);
		              for(Filecontent fcontent : fcontents){
			                %>
			                  <li>
			                  <img src="my.photo/photo/logo6.jpg">&nbsp;<a href="getFContenttextAction.action?CFC_id=<%=fcontent.getCFC_id() %>" target="_blank"><%=fcontent.getCFC_topic()%></a>
			                  </li>
			                <%
		                  }
					  %>
				    </ul>   
				</div>        
			</div>
			<div id="mR3"></div>
		</div>
		<div id="mT"></div>
	</div>
	<div id="tail">
	         <a href="connect.jsp">关于我们 </a>| <a href="connect.jsp">联系方式</a> | <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:8080/MyProject/contentAction');">设为首页</a> | <a href="Javascript:window.external.addFavorite(document.location.href,document.title)">加入收藏</a><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.mrl.org.cn/" target="_blank">江西省山江湖办</a><br><br>                 
			  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			  <a href="admin/login.jsp" target="_blank">点击此处进入管理员登录入口</a>
	</div>
</body>
</html>

